<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <!-- v-model 是双向绑定，数据变了元素也会变-->
    <div id="app">
        wanqing 精通的语言：
        <input type="checkbox" value="java" v-model="language"> java <br>
        <input type="checkbox" value="js" v-model="language"> js <br>
        <input type="checkbox" value="python" v-model="language"> python <br>
        选中了：{{language.join(",")}}

    </div>
   
    <script src="./node_modules/vue/dist/vue.js"></script>
    <script>
        new Vue({
            el: '#app',
            data:{
                language: []
            },
            method: {
                
            }
        });
    </script> 
</body>
</html>